namespace StyleCop.For.ReSharper.Update
{
    using System.Xml.Serialization;

    /// <summary>
    /// Defines an Auto Update Document.
    /// </summary>
    [XmlRoot("autoupdate")]
    public class AutoUpdate
    {
        /// <summary>
        /// Gets or sets the Version of the Document.
        /// </summary>
        [XmlElement(ElementName = "version")]
        public AutoUpdateVersion Version { get; set; }

        /// <summary>
        /// Gets or sets the Url to download an update.
        /// </summary>
        [XmlElement(ElementName = "downloadurl")]
        public string DownloadUrl { get; set; }

        /// <summary>
        /// Gets or sets a service announcement message.
        /// </summary>
        [XmlElement(ElementName = "message")]
        public string Message { get; set; }
    }
}